﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<z.m.Login>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Login
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<div id="cen">
	<table>
		<tr>
			<td>
				<% using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl })) { %>
				<%: Html.AntiForgeryToken() %>
				<%: Html.ValidationSummary(true) %>

				<fieldset>
					<legend>Log in</legend>
					<table>
						<tr>
							<td><%: Html.LabelFor(m => m.UserName) %></td>
							<td><%: Html.TextBoxFor(m => m.UserName) %></td>
							<td><%: Html.ValidationMessageFor(m => m.UserName) %></td>
						</tr>
						<tr>
							<td><%: Html.LabelFor(m => m.Password) %></td>
							<td><%: Html.PasswordFor(m => m.Password) %></td>
							<td><%: Html.ValidationMessageFor(m => m.Password) %></td>
						</tr>
						<tr>
							<td colspan="3"><%: Html.CheckBoxFor(m => m.RememberMe) %><%: Html.LabelFor(m => m.RememberMe, new { @class = "checkbox" }) %></td>
						</tr>
					</table>
					<input type="submit" value="Log in" />
				</fieldset>
				<% } %></td>
		</tr>
		<tr>
			<td><%: Html.Action("_ExternalLoginsList", new { ReturnUrl = ViewBag.ReturnUrl }) %></td>
		</tr>
		<tr>
			<td><h3><%: Html.ActionLink("Register", "Register","User") %> if you don't have an account.</h3></td>
		</tr>
	</table>
		</div>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptsSection" runat="server">
</asp:Content>